Most p4 functions return -1 if an error occurs. Some, however, call the function p4_error when severe errors occur. This function prints a message and then attempts to terminate all of the user's processes Functions for Debugging p4 Programs.
p4 Functions for Managing Processes and Clusters,Functions for Message Passing,The p4 Function Library,Top